{\rtf1\ansi\ansicpg936\cocoartf2511
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fnil\fcharset134 PingFangSC-Regular;}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\paperw11900\paperh16840\margl1440\margr1440\vieww11100\viewh15300\viewkind0
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0

\f0\fs24 \cf0 \'c8\'fd\'d6\'f7\'c8\'fd\'b4\'d3  \'b6\'cb\'bf\'da\'ba\'c5\'b6\'a8\'ce\'bb7001-7006	7001 7002 7003 \'ce\'aa\'d6\'f7\'a3\'ac7004 7005 7006 \'ce\'aa\'b4\'d3\
\'b4\'b4\'bd\'a8 /var/redis-cluster \'ce\'c4\'bc\'fe\'bc\'d0\
\
\'d4\'da redis-cluster \'cf\'c2\'b4\'b4\'bd\'a8 7001-7006 \'c1\'f9\'b8\'f6\'ce\'c4\'bc\'fe\'bc\'d0\
\
\'bd\'f8\'c8\'ebsrc\'c4\'bf\'c2\'bc \'c8\'bb\'ba\'f3\'b0\'b2\'d7\'b0\'b5\'bd7001\'c4\'bf\'c2\'bc\
cd /var/redis-5.0.5/src\
make install PREFIX=/var/redis-cluster/7001\
\
\'bf\'bd\'b1\'b4redis.conf\'ce\'c4\'bc\'fe\'b5\'bd7001\
cp /var/redis-5.0.5/redis.conf /var/redis-cluster/7001/bin/\
\
vim redis.conf\
\
\'d4\'da\'b4\'f3\'d4\'bc69\'d0\'d0\'a3\'ac\'d7\'a2\'ca\'cd\'b5\'f4 bind 127.0.0.1\'a3\'ac\'bd\'e2\'b3\'fd\'b1\'be\'bb\'fa\'cf\'de\'d6\'c6\
# bind 127.0.0.1\
\
\'d4\'da\'b4\'f3\'d4\'bc88\'d0\'d0\'a3\'ac\'b9\'d8\'b1\'d5\'b1\'a3\'bb\'a4\'c4\'a3\'ca\'bd \
protected-mode no\
\
\'d4\'da\'b4\'f3\'d4\'bc92\'d0\'d0\'a3\'ac\'b6\'cb\'bf\'da\'b8\'c4\'ce\'aa7001\
port 7001\
\
\'d4\'da\'b4\'f3\'d4\'bc136\'d0\'d0\'a3\'ac\'d0\'de\'b8\'c4daemonize \'ce\'aa yes\
daemonize yes\
\
\'d4\'da\'b4\'f3\'d4\'bc\'b5\'da 832 \'d0\'d0\'a3\'ac\'b4\'f2\'bf\'aa cluster-enable yes \'b5\'c4\'d7\'a2\'ca\'cd\'a3\'ac\'ca\'b9\'c6\'e4\'c9\'fa\'d0\'a7\'a1\'a3\'b4\'cb\'ca\'b1\'bd\'da\'b5\'e3\'bc\'b4\'ca\'f4\'d3\'da\'bc\'af\'c8\'ba\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
\cf0 cluster-enable yes\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
\cf0 \
\'b0\'d17001\'b5\'c4\'cb\'f9\'d3\'d0\'c4\'da\'c8\'dd\'bf\'bd\'b1\'b4\'b5\'bd\'c6\'e4\'cb\'fb\'ce\'c4\'bc\'fe\'bc\'d0 \
cp -r /var/redis-cluster/7001/* /var/redis-cluster/7002 \
cp -r /var/redis-cluster/7001/* /var/redis-cluster/7003 \
cp -r /var/redis-cluster/7001/* /var/redis-cluster/7004 \
cp -r /var/redis-cluster/7001/* /var/redis-cluster/7005 \
cp -r /var/redis-cluster/7001/* /var/redis-cluster/7006\
\
\'d0\'de\'b8\'c4\'c3\'bf\'b8\'f6\'ce\'c4\'bc\'fe\'bc\'d0\'d6\'d0redis.conf\'b5\'c4\'b6\'cb\'bf\'da\'ba\'c5\'a1\'a3\
\
\'b1\'e0\'bc\'ad\'c8\'ba\'c6\'f0\'bd\'c5\'b1\'be\
cd 7001/bin\
./redis-server redis.conf\
cd ..\
cd ..\
\
cd 7002/bin\
./redis-server redis.conf\
cd ..\
cd ..\
\
cd 7003/bin\
./redis-server redis.conf\
cd ..\
cd ..\
\
cd 7004/bin\
./redis-server redis.conf\
cd ..\
cd ..\
\
cd 7005/bin\
./redis-server redis.conf\
cd ..\
cd ..\
\
cd 7006/bin\
./redis-server redis.conf\
cd ..\
cd ..\
\
\
\'b8\'f8start.sh\'b8\'b3\'d3\'e8\'d0\'b4\'ba\'cd\'d6\'b4\'d0\'d0\'c8\'a8\'cf\'de\
chmod u+x start.sh\
\
\
./start.sh   \'c6\'f4\'b6\'af\
\
\'c6\'f4\'b6\'af\'b3\'c9\'b9\'a6\'ba\'f3 \'b2\'e9\'bf\'b4\'bd\'f8\'b3\'cc\
ps -ef | grep redis\
\
root       7635      1  0 23:30 ?        00:00:00 ./redis-server *:7001 [cluster]\
root       7637      1  0 23:30 ?        00:00:00 ./redis-server *:7002 [cluster]\
root       7645      1  0 23:30 ?        00:00:00 ./redis-server *:7003 [cluster]\
root       7647      1  0 23:30 ?        00:00:00 ./redis-server *:7004 [cluster]\
root       7655      1  0 23:30 ?        00:00:00 ./redis-server *:7005 [cluster]\
root       7660      1  0 23:30 ?        00:00:00 ./redis-server *:7006 [cluster]\
root       7670   7297  0 23:31 pts/0    00:00:00 grep --color=auto redis\
\
\'b3\'f6\'cf\'d6\'d2\'d4\'c9\'cf\'bd\'f8\'b3\'cc\'bf\'c9\'d6\'aa\'c6\'f4\'b6\'af\'b3\'c9\'b9\'a6\'a1\'a3\
\
7001/bin\'c4\'bf\'c2\'bc\'cf\'c2\
\'b4\'b4\'bd\'a8 redis \'bc\'af\'c8\'ba  \'c7\'b0\'c8\'fd\'b8\'f6\'ce\'aa\'d6\'f7\'a3\'ac\'ba\'f3\'c8\'fd\'b8\'f6\'ce\'aa\'b4\'d3\
./redis-cli --cluster create 192.168.77.100:7001 192.168.77.100:7002 192.168.77.100:7003 192.168.77.100:7004 192.168.77.100:7005 192.168.77.100:7006 --cluster-replicas 1\
\
\
[OK] All nodes agree about slots configuration.\
>>> Check for open slots...\
>>> Check slots coverage...\
[OK] All 16384 slots covered.\
\'b3\'f6\'cf\'d6\'c8\'e7\'c9\'cf\'cc\'e1\'ca\'be\'a3\'ac\'d4\'f2\'b4\'b4\'bd\'a8\'b3\'c9\'b9\'a6\
\
\
\
\
\
\'d4\'f6\'bc\'d3\'bd\'da\'b5\'e3\'a3\'ba\
\'b4\'b4\'bd\'a8 /var/redis-cluster/7007 \'ce\'c4\'bc\'fe\'bc\'d0\
\'d5\'e2\'c0\'ef\'b1\'d8\'d0\'eb\'ca\'c7\'d2\'bb\'b8\'f6\'d0\'c2\'b5\'c4\'bd\'da\'b5\'e3\'a3\'ac\'cb\'f9\'d2\'d4\'d6\'d8\'d0\'c2\'b4\'d3 src \'c4\'bf\'c2\'bc\'b0\'b2\'d7\'b0 \
make install PREFIX=/var/redis-cluster/7007\
\
\'bf\'bd\'b1\'b4\'c5\'e4\'d6\'c3\'ce\'c4\'bc\'fe\
cp /var/redis-5.0.5/redis.conf /var/redis-cluster/7007/bin/\
\
\'d0\'de\'b8\'c4\'c5\'e4\'d6\'c3\'ce\'c4\'bc\'fe\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
\cf0 # bind 127.0.0.1\
protected-mode no\
port 7007\
daemonize yes\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
\cf0 cluster-enabled yes\
\
\'bf\'bd\'b1\'b47007\'cb\'f9\'d3\'d0\'c4\'da\'c8\'dd\'b2\'a2\'c3\'fc\'c3\'fb\'ce\'aa7008\'a3\'ac\'b2\'a2\'d0\'de\'b8\'c4\'b6\'cb\'bf\'da\'ba\'c5\
cp -r 7007 7008\
\
\'b5\'a5\'b6\'c0\'c6\'f4\'b6\'af7007\
cd /var/redis-cluster/7007/bin\
./redis-server redis.conf\
\
\'bd\'ab7007\'bc\'d3\'c8\'eb\'bc\'af\'c8\'ba\
./redis-cli --cluster add-node 192.168.77.100:7007 192.168.77.100:7001\
\
[OK] All nodes agree about slots configuration.\
>>> Check for open slots...\
>>> Check slots coverage...\
[OK] All 16384 slots covered.\
>>> Send CLUSTER MEET to node 192.168.77.100:7007 to make it join the cluster.\
[OK] New node added correctly.\
\'b3\'f6\'cf\'d6\'d2\'d4\'c9\'cf\'cc\'e1\'ca\'be\'b1\'ed\'ca\'be\'bc\'d3\'c8\'eb\'b3\'c9\'b9\'a6\
\
\'d0\'e8\'d2\'aa\'b8\'f8\'d0\'c2\'b5\'c4\'bd\'da\'b5\'e3\'bc\'d3\'b2\'db\
 ./redis-cli --cluster reshard 192.168.77.100:7007\
\
\'ca\'e4\'c8\'eb solts \
\'ca\'e4\'c8\'eb cluster nodes \'d6\'d07007\'bd\'da\'b5\'e3\'b5\'c4id\
\'d2\'c0\'b4\'ce\'cf\'f2\'cf\'c2\'d6\'b4\'d0\'d0\'a3\'ac\'d7\'ee\'d6\'d57007\'c4\'bf\'c2\'bc\'cf\'c2\'b6\'e0\'d2\'bb\'b8\'f6\'ce\'c4\'bc\'fe node.conf\'a3\'ac\'b7\'d6\'b2\'db\'cd\'ea\'b1\'cf\
\
\'c6\'f4\'b6\'af7008\
cd /var/redis-cluster/7008/bin\
./redis-server redis.conf\
\
\'cc\'ed\'bc\'d3\'b4\'d3\'bd\'da\'b5\'e3\
./redis-cli --cluster add-node 192.168.77.100:7008 192.168.77.100:7007 --cluster-slave --cluster-master-id c3293e55f54f390931dc9452babc9c3f8331ce53\
\
[OK] All nodes agree about slots configuration.\
>>> Check for open slots...\
>>> Check slots coverage...\
[OK] All 16384 slots covered.\
>>> Send CLUSTER MEET to node 192.168.77.100:7008 to make it join the cluster.\
Waiting for the cluster to join\
\
>>> Configure node as replica of 192.168.77.100:7007.\
[OK] New node added correctly.\
\
\'b3\'f6\'cf\'d6\'d2\'d4\'c9\'cf\'cc\'e1\'ca\'be \'b1\'ed\'ca\'be\'cc\'ed\'bc\'d3\'b3\'c9\'b9\'a6\
\
\
}